package com.ye.spring.dao.impl;

import com.ye.spring.dao.UserDao;
import com.ye.spring.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

@Repository
public class UserDaoImpl implements UserDao {

    @Autowired
    private JdbcTemplate jdbcTemplate;

    @Override
    public void addUser() {

//        String sql = "insert into user values(null,?,?,?,?)";
//        jdbcTemplate.update(sql, user);
        //写sql
        System.out.println("save user");
    }
}
